<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2023-06-07
  Time: 11:22
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<style>
    th {
        align-content: center;
    }
</style>
<form action="/insert"method="post">
    <table border="1">
        <tr>
            <th>租赁方式</th>
            <th><input type="text" name="mode"></th>
        </tr>
        <tr>
            <th>租金</th>
            <th><input type="text" name="rent"></th>
        </tr>
        <tr>
            <th>联系人</th>
            <th><input type="text" name="cont"></th>
        </tr>
        <tr>
            <th>押金方式</th>
            <th><input type="text" name="method"></th>
        </tr>
        <tr>
            <th>房屋类型</th>
            <th>
                <select name="type">
                    <c:forEach items="${list}" var="fz">
                        <option value="${fz.id}">
                                ${fz.type}
                        </option>
                    </c:forEach>
                </select>
            </th>
        </tr>
        <tr>
            <th>详细地址</th>
            <th><input type="text" name="addr"></th>
        </tr>
        <tr>
            <th><input type="submit" value="确定"></th>
        </tr>
    </table>
</form>
</body>
</html>
